/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
namespace DGZImp.BizEntity.DomainModels;

[Entity(TableCnName = "产品尺寸",TableName = "Demo_ProductSize",DetailTable =  new Type[] { typeof(Demo_ProductSizeSub)},DetailTableCnName = "产品尺寸明细",DBServer = "ServiceDbContext")]
public partial class Demo_ProductSize: ServiceEntity
{
    /// <summary>
   ///
   /// </summary>
   [SugarColumn(IsPrimaryKey = true)]
   [Key]
   [Display(Name ="ProductSizeId")]
   [Column(TypeName="uniqueidentifier")]
   [Required(AllowEmptyStrings=false)]
   public Guid ProductSizeId { get; set; }

   /// <summary>
   ///商品id
   /// </summary>
   [Display(Name ="商品id")]
   [Column(TypeName="uniqueidentifier")]
   [Editable(true)]
   public Guid? ProductId { get; set; }

   /// <summary>
   ///尺寸
   /// </summary>
   [Display(Name ="尺寸")]
   [MaxLength(50)]
   [Column(TypeName="nvarchar(50)")]
   [Editable(true)]
   [Required(AllowEmptyStrings=false)]
   public string Size { get; set; }

   /// <summary>
   ///单位
   /// </summary>
   [Display(Name ="单位")]
   [MaxLength(50)]
   [Column(TypeName="nvarchar(50)")]
   [Editable(true)]
   [Required(AllowEmptyStrings=false)]
   public string Unit { get; set; }

    /// <summary>
    ///逻辑删除标志
    /// </summary>
    [Display(Name = "逻辑删除标志")]
    [Column(TypeName = "int")]
    public int? IsValid { get; set; }

    /// <summary>
    ///备注
    /// </summary>
    [Display(Name = "备注")]
    [MaxLength(500)]
    [Column(TypeName = "nvarchar(500)")]
    [Editable(true)]
    public string Remarks { get; set; }

    /// <summary>
    ///
    /// </summary>
    [Display(Name ="CreateID")]
   [Column(TypeName="int")]
   public int? CreateID { get; set; }

   /// <summary>
   ///创建人
   /// </summary>
   [Display(Name ="创建人")]
   [MaxLength(30)]
   [Column(TypeName="nvarchar(30)")]
   public string Creator { get; set; }

   /// <summary>
   ///创建时间
   /// </summary>
   [Display(Name ="创建时间")]
   [Column(TypeName="datetime")]
   public DateTime? CreateTime { get; set; }

   /// <summary>
   ///
   /// </summary>
   [Display(Name ="ModifyID")]
   [Column(TypeName="int")]
   public int? ModifyID { get; set; }

   /// <summary>
   ///修改人
   /// </summary>
   [Display(Name ="修改人")]
   [MaxLength(30)]
   [Column(TypeName="nvarchar(30)")]
   public string Modifier { get; set; }

   /// <summary>
   ///修改时间
   /// </summary>
   [Display(Name ="修改时间")]
   [Column(TypeName="datetime")]
   public DateTime? ModifyTime { get; set; }

   [Display(Name ="产品尺寸明细")]
   [ForeignKey("ProductSizeId")][Navigate(NavigateType.OneToMany,nameof(ProductSizeId),nameof(ProductSizeId))]
   public List<Demo_ProductSizeSub> Demo_ProductSizeSub { get; set; }


   
}